<?php if (!defined('THINK_PATH')) exit();?>
  <tr>
    <th>ID</th>
    <th><i class="fa fa-image"> 图片</th>
      <th><i class="fa fa-header"></i> 文章标题</th>
      <th><i class="fa fa-user"></i> 文章作者</th>
      <th id="pageview"><i class="fa fa-clock-o"></i> 浏览数<span class="glyphicon glyphicon-triangle-bottom" style="margin-left:5px;color:#bbb"></span> </th>
    <th><i class="fa fa-clock-o"> 发布时间</th>
      <th><i class="fa fa-eye"> 是否显示</th>
    <th>操作</th>
  </tr>
  <?php if(is_array($article)): foreach($article as $key=>$v): ?><tr>
      <td ><?php echo ($a++); ?></td>
      <td ><img src="/furniture/Upload/<?php echo ($v["art_img"]); ?>" style="height:50px;" alt=""></td>
      <td class='art_title'>
        <input type="text" value="<?php echo ($v["art_title"]); ?>" readonly data_id="<?php echo ($v["art_id"]); ?>">
      </td>
      <td><?php echo ($v["art_author"]); ?></td>
      <td><?php echo ($v["art_pageview"]); ?></td>
      <td ><?php echo (date("Y-m-d",$v["art_addtime"])); ?></td>
      <td class="is_show" data_id="<?php echo ($v["art_id"]); ?>" data_value="<?php echo ($v["is_show"]); ?>">
        <img src="/furniture/Public/Admin/img/<?php echo ($v['is_show']==1?'yes':'no'); ?>.png" alt="">
      </td>
      <td>
          <a href="<?php echo U('Admin/Article/article_edit/aid/'.$v['art_id']);?>" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>                                        
          <a href="javascript:void(0)" class="btn btn-white btn-sm del" a_id="<?php echo ($v["art_id"]); ?>"><i class="fa fa-trash"></i> 删除 </a>
      </td>
    </tr><?php endforeach; endif; ?>
                              
  <tr>
    <td colspan="8"><?php echo ($show); ?></td>
  </tr>